s<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset="UTF-8">
    <title>学生登成绩</title>
    <link type="text/css" rel="styleSheet"  th:href="@{../static/themes/icon.css}" />
    <link type="text/css" rel="styleSheet"  th:href="@{../static/themes/default/easyui.css}" />
    <script th:src="@{../static/js/jquery.js}"></script>
    <script th:src="@{../static/js/jquery.easyui.min.js}"></script>
    <script th:src="@{../static/js/easyui-lang-zh_CN.js}"></script>
    <style>
        .first{
            width: 100%;
            height: 95%;
        }
    </style>
</head>
<body class="first">
<!-按钮组-->
<table class="table_student">
    <thead>
    <tr>
        <th data-options="field:'student_id',width:100" align="center">专业号</th>
        <th data-options="field:'course_id',width:100" align="center">科目id</th>
        <th data-options="field:'grade',width:100" align="center">组卷方式</th>
    </tr>
    </thead>
</table>
<div class ="up_student" align="center">
    <form class="up_from" th:action="@{/up_student_grade}" method="post">
        <table>
            <tr>
                <td>学号</td>
                <td><input type="text" name="student_id" required= "required" /></td>
            </tr>
            <tr>
                <td>科目id</td>
                <td><input type="text" name="course_id" required= "required" /></td>
            </tr>
            <tr>
                <td>成绩</td>
                <td><input type="text" name="grade" required= "required" /></td>
            </tr>
        </table>
    </form>
</div>
<script>
    $(function () {
        $(".table_student").datagrid({
            title:"我的考试信息",
            iconCls:"icon-man",
            height:670,
            weight:1000,
            url:'/setExamCourse',           //展示json数据
            toolbar: ".data",             //引用按钮组
            rownumbers: true,             //显示行号
            checkOnSelect:true,           //复选框选中才是真正的选中
            fitColumns:true,              //根据数据自适应列宽
            striped:true,                 //灰白相间
            pagination:true,               //开启分页

        });
        $(".update").linkbutton({
            iconCls:"icon-edit",
            onClick:function () {
                $(".up_student").dialog({          //修改dialog的closed的值
                    closed: false,
                });
            }

        });
        $(".up_student").dialog({
            weight: 200,
            height: 200,
            title: "修改学生成绩信息",
            iconCls:"icon-man",
            buttons:".up",
            closed: true,                 //初始关闭
        })
    });
</script>
</body>
</html>